<template>
    <div>
         {{gitId}}

    </div>
</template>

<script setup>
/**
 * Created by CodeGenerator  at 2021-02-07 18:51:27
 */



//定义 vue2的this,当前组件
const $self = getCurrentInstance();

//定义 $attrs
const $attrs = useAttrs();



//定义data
const $data = reactive({
    info:{},
    JenkinsLanguageEnum: jv.enum.JenkinsLanguageEnum.getData(),
});
const info = $computed(()=> $data.info );

const $props = defineProps({
    id: { type: String } ,
    action: { type: String } ,
    gitId : { type: String }
});

const action_name = $computed(()=>{
    return {add: "添加", edit: "修改"}[$props.action]
});



const list = ref();

//定义事件
const $emit = defineEmits(["update:modelValue","loaded"]);



const loadData = function(){
    if (!$props.gitId) return;
    jv.$http.post("/dev/git-data/detail/" + $props.gitId).then(res => {
        $data.info = res.data.data;
    });
};

onMounted( function() {
    loadData();
} )



</script>
